package com.info.zhiduoduo.repository.entity.system;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
@TableName("zdd_system_manager")
public class SystemManager extends Model<SystemManager> {

    @TableId(value = "managerid", type = IdType.AUTO)
    private int managerid;
    private String managername;
    private String loginname;
    private String password;
    private int roleid;
    /** 1正常 2冻结 */
    private int state;
    /**
     * 对接城市
     */
    @TableField("docking_city")
    private String dockingCity;


    @Override
    protected Serializable pkVal() {
        return managerid;
    }
}
